/************************************
Quad

Draws a quad centered on (x, y)
************************************/

#ifndef QUAD_H
#define QUAD_H

#include <scene/SceneNode.h>

class Quad : public SceneNode {
public:
  Quad();
  Quad(const Quad * rhs);
  Quad(float x, float y, float width, float height, float theta): x(x),y(y),width(width),height(height),theta(theta){};

  long preDraw(Device * device);
  SceneNode * copy() const;
  
  SceneNode * select(const D3DXVECTOR4 & v);

  float x;
  float y;
  float width;
  float height;
  float theta;
};

#endif
